package com.aiapphub.BaseCode.config;

import com.aiapphub.BaseCode.utils.TokenUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
public class APPConfig {

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

    @Bean
    public TokenUtil tokenUtil(RestTemplate restTemplate) {
        return new TokenUtil(restTemplate);
    }

}
